package com.service.student.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.student.StestDao;
import com.po.Student;
import com.service.student.StestService;

@Service
public class StestServiceImp implements StestService {

	@Resource(name="stestDaoImp")
	private StestDao studentDao;
	@Override
	public Student findStudent(Student stu) {
		
		Student student = studentDao.findStuInfo(stu);
		return student;
	}
	@Override
	public int addStudent(Student stu) {
		// TODO Auto-generated method stub
		return studentDao.addStudent(stu);
	}
	@Override
	public List<Student> getStuList() {
		// TODO Auto-generated method stub
		return studentDao.getStuList();
	}
	@Override
	public int delStudent(String stuid) {
		// TODO Auto-generated method stub
		return studentDao.delStudent(stuid);
	}
	@Override
	public int updateStudent(Student stu) {
		// TODO Auto-generated method stub
		return studentDao.updateStudent(stu);
	}

}
